package Lesson4;

import java.util.Scanner;

public class Task2 {

	public static void main(String[] args) {

		Scanner sc = new Scanner (System.in);
		
		System.out.println("Enter the length of the array: ");
		int length = sc.nextInt();
		
		int [] arr = new int [length];
		
		int number;
		int count = 0;
		String plase = "";
		
		System.out.println("Enter the number in the elements of the array");
		
		for (int i = 0; i < arr.length; i++)
		{
				System.out.print((i+1)+". ");
			number = sc.nextInt();
			
			arr[i] = number;
		}
		
		for (int i = 0; i < arr.length; i++)
		{
			if (arr[i] == 0)
			{
				plase += i + " ";
				count ++;
				
			}

		}
		
		System.out.println("There is null on element(s) " + plase);
		System.out.println("There are " + count + " null(s) in the array");
}}

